package com.rxb.blog.service;

import com.rxb.blog.entity.UserEntity;
import com.rxb.blog.utils.BlogException;
import com.rxb.blog.vo.UserVo;

import javax.mail.MessagingException;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * Author：rxb
 * Date：2020-01-16 16:49
 * Description：<描述>
 */
public interface UserService {
    UserEntity selectById(int id);

    void login(UserVo userVo, HttpServletRequest request) throws BlogException;

    String register(UserVo userVo) throws BlogException;

    void sendIdentifyCode(UserVo userVo) throws IOException, MessagingException, BlogException;

    void findPassword(UserVo userVo) throws IOException, MessagingException, BlogException;

    Map getUsers(int currentPage, int pageSize);

    void updateUser(UserVo userVo);

    void deleteUser(UserVo userVo);

    void addUser(UserVo userVo)  throws BlogException;

    void deleteUsers(List<Integer> ids);
}
